package com.boe.admin;

import com.boe.config.spring.SpringUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication(scanBasePackages = {"com.boe.admin.*", "com.boe.config.*"})
@MapperScan({"com.boe.admin.mapper"})
public class AdminMainApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdminMainApplication.class, args);

        System.out.println("~~~~~~~~~~~~~~~~~~~~~~");
        System.out.println(SpringUtil.getEnvironment().getProperty("spring.application.name") + " 启动成功！端口号：" + SpringUtil.getEnvironment().getProperty("server.port"));
        System.out.println("~~~~~~~~~~~~~~~~~~~~~~");
    }

}
